<template>
  <div>
    <Navbar></Navbar>
    <div id="root">
      <div v-for="a in remind.data">
        <span>{{a.nickname?a.nickname:a.username}}</span>
        <span style="color:#aaa">回复了你  快去看看吧</span>
        <a @click="btn" class="asd" href="http://127.0.0.1:8080/#">点击查看</a >
      </div>
      
    </div>
  </div>
</template>

<script>
  import {mapState} from "vuex";
  import Navbar from "../components/Navbar.vue"
  export default {
  components: { Navbar },
    mounted:function(){
        this.$store.dispatch("remind");
    },
    computed:{
      ...mapState([
        "remind",
      ]) 
    },
    methods:{
      btn(){
        console.log(55)
        this.$store.dispatch("dumpremind")
      }
      
    }
  }

</script>

<style scoped>
  #root{
    padding: 12px;
  }
  .asd {
    display: block;
    padding-top: 10px;
    margin-left: 10px;
    margin-right: 6px;
    font-size: 20px;
    text-decoration: none;
    color: #0099FF;
  }
</style>